#include "precompiled.h"
#pragma hdrstop

#if (INF_PLATFORM == PLATFORM_WIN32)
#	ifndef _WIN32_WINNT
#		define _WIN32_WINNT WINVER	// for compile threading
#	endif
#	define WIN32_LEAN_AND_MEAN
#	include <Windows.h>				// for compile threading
#else   // linux
//...
#endif

namespace inf {

	static const UINT MB_TYPES[3] = 
	{
		MB_ICONINFORMATION,
		MB_ICONWARNING,
		MB_ICONERROR
	};
	static const HWND DEFAULT_HWND=0;

	int				message_box_char( const char* title, const char* buffer, messageBoxType_t type ) {
		return ::MessageBoxA(DEFAULT_HWND, buffer, title, MB_TYPES[type] | MB_OK);
	}

	int             message_box_wchar( const wchar_t* title, const wchar_t* buffer, messageBoxType_t type ) {
		return ::MessageBoxW(DEFAULT_HWND, buffer, title, MB_TYPES[type] | MB_OK);
	}
}   // ::inf

